package com.chen.service;

import com.chen.domain.SysUser;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Component
public class TestServie {
    public List<SysUser> test(){
        List<SysUser> list=new ArrayList<>();
        for (long i = 1L; i <= 1000L; i++){
            SysUser sysUser = new SysUser();
            sysUser.setName("test"+i);
            sysUser.setAge(18);
            sysUser.setCreateBy("admin");
            sysUser.setCreateTime(new Date());
            sysUser.setUpdateTime(new Date());
            sysUser.setUpdateBy("admin");
            sysUser.setVersion(1);
            sysUser.setDeleteFlag(0);
            list.add(sysUser);
        }
        return  list;
    }

}
